<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>联系我们 - <?=C('S_TITLE')?> <?=C('S_STITLE')?></title>
    <include file="Public:_head"/>
</head>

<body>
<include file="Public:_header"/>

<div id="wrap">
    <div class="hero">
        <img src="/img/tmp/19.jpg" alt=""/>
    </div>

    <div class="bg-blue">
        <div class="content bg-blue contact clearfix">
            <div class="contact-tag"></div>
            <div class="contact-left">
                <img src="/img/contact_title.jpg" class="contact-title" alt=""/>
                <div class="join-way join-map">
                    <i></i>
                    <span><?=C('S_ADDRESS')?></span>
                </div>
                <div class="join-way join-phone">
                    <i></i>
                    <span><?php echo str_replace(' ', '&nbsp;', C('S_PHONE')); ?></span>
                </div>
                <div class="join-way join-clock">
                    <i></i>
                    <span><?=C('S_TIME')?></span>
                </div>
            </div>
            <div class="contact-right">
                <form action="/join/contact" id="contact-form">
                    <input type="text" name="title" placeholder="Name姓名："/>
                    <input type="text" name="phone" placeholder="Telephone电话："/>
                    <div class="textarea clearfix">
                        <textarea cols="30" name="msg" rows="10" placeholder="Message内容："></textarea>
                        <a href="#" class="fr" id="submit"><img src="/img/submit.jpg" alt=""/></a>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <div class="hero" style="height: 527px;">
        <img src="/img/map.jpg" alt=""/>
    </div>

    <div class="join content clearfix">
        <div class="join-left">
            <div class="join-title">
                <img src="/img/join_title.jpg" alt=""/>
            </div>

            <volist id="v" name="job" key="k">
                <div class="join-item">
                    <div class="star"></div>
                    <div class="join-item-title">
                        {$v.title}
                    </div>

                    <div class="join-item-text">
                        <?php echo str_replace(et, br, $v['intro']); ?>
                    </div>
                </div>
            </volist>

            <div class="join-item join-contact-item">
                <div class="join-item-text">
                    请将简历发送至邮箱：<a href="mailto:<?=C('S_MAIL')?>" style="color: #929ba9; text-decoration: none;"><?=C('S_MAIL')?></a>（投递时请注明意向城市） 
                </div>
            </div>
        </div>

        <div class="join-right">
            <img src="/img/join_img.jpg" alt=""/>
        </div>
    </div>

</div>


<include file="Public:_footer"/>
<script>
  $('#submit').on('click', function(e) {
    e.stopPropagation();
    e.preventDefault();
    if(!$('[name="title"]').val()) {
      alert('请输入姓名');
      return;
    }
    if(!$('[name="phone"]').val()) {
      alert('请输入电话');
      return;
    }
    if(!$('[name="msg"]').val()) {
      alert('请输入留言');
      return;
    }
    $('#contact-form').ajaxSubmit(function() {
      alert("感谢您的留言");
      $('#contact-form input, #contact-form textarea').val('').trigger('blur');
    });
  })

</script>
</body>
</html>